for a in range(200, 301):
    ge = a % 10
    shi = a // 10 % 10
    bai = a // 100 % 10
    if ge*shi*bai==42 and ge+shi+bai==12:
        print(a)
